/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Includes commonly used constants eg. screen width + height,
 * texturescalerates etc.
 */

#include "Common.h"

// initialize with default values
float WIN_WIDTH = 800;
float WIN_HEIGHT = 480;

// texture scalerates
float RATEX = WIN_WIDTH / 1024.0f;
float RATEY = WIN_HEIGHT / 512.0f;

// additional settings
bool SHOW_FPS = true;

// box 2d velocity & position iterations
int BOX2D_VELOCITY_ITERATIONS = 6;
int BOX2D_POSITION_ITERATIONS = 6;

// default world width and height visible on the game screen
float WORLD_WIDTH = 50;
float WORLD_HEIGHT = 30;

// treshold for moving objects
float OBJECT_MOVING_TRESHOLD = 0.9f;

// initialize values of the module
void initValues( float width, float height ) {
	WIN_WIDTH = width;
	WIN_HEIGHT = height;
	RATEX = width / 1024.0f;
	RATEY = height / 512.0f;
}

// bomb prizes
int PRIZE_ARRAY[ 11 ] = {
	0, 0, 0, 0, 0, 750, 1500, 0, 1000, 0, 0
};